from selenium import webdriver

def initDriver(browerType="Chrome",timeout=10):
    driver=None
    if browerType=="Chrome" or browerType=="chrome":
        driver = webdriver.Chrome()
    elif browerType=="Firefox" or browerType=="firefox":
        driver = webdriver.Firefox()

    driver.maximize_window()  # 最大化浏览器
    driver.implicitly_wait(timeout)
    return driver